const base = require("./webpack.base");
const dev = require("./webpack.dev");
const prod = require("./webpack.prod");
const {merge } = require('webpack-merge');
module.exports = function (env) {
    if(env && env.prod){
        // 生产环境
        return merge(base, prod)
    }   
    else{
        // 开发环境
        return  merge(base, dev)
    }

}